|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectraar.agent.process.RAProcess
public class RAProcess
RAProcess models a process in the RA environment. Process has:
| Field Summary | |
|---|---|
protected boolean |
hasRun
|
protected RASetRegister |
inregister
|
protected RAFetchRegister |
outregister
|
protected RARegister |
register
|
protected java.lang.String |
sourceCode
|
protected RAStatement |
statement
|
| Constructor Summary | |
|---|---|
RAProcess(RARegister register,
RAStatement statement,
RASetRegister inregister,
RAFetchRegister outregister)
Construct an RAProcess with register, statement(set), input and output. |
|
| Method Summary | |
|---|---|
boolean |
acceptsInput(RADataType obj,
java.lang.String name)
Returns true if the process would accept the specified input object and name. |
java.lang.Object |
clone()
Clone the process. |
void |
dumpRegisters()
Give a System.out dump of the current content of all the registers (input, output, and internal). |
void |
execute()
Executes the statement(set) in this process without updating the register and outputs first resp. afterwards! |
RADataType |
get(java.lang.String key)
Get a specific key's value from the output register. |
RADataType |
getDataType(java.lang.String name)
Returns the datatype for a given name. |
java.util.Vector |
getInputNames()
Get a String vector containing the names of the keys the input register stores (in order). |
java.util.Vector |
getInputObjects()
Get an RADataType vector containing the current content of the input register. |
java.util.Vector |
getOutputNames()
Get a String vector containing the names of the keys the output register stores (in order). |
java.util.Vector |
getOutputObjects()
Get an RADataType vector containing the current content of the output register. |
java.lang.String |
getProcessName()
Get the process name. |
java.lang.String |
getSourceCode()
Get the process source code. |
boolean |
isSpecial()
Use this method to determine whether this process is a special one that should be executed before other processes (i.e. processes with this value on true will ALL be executed before processes with this value on false, and their outputs will be sent to connected inputs, also before the processes with this flag on false start). |
void |
reset()
Reset process by physically erasing the data in the registers. |
void |
run()
Run the process; first set all outputs to null. |
void |
set(java.lang.String key,
RADataType value)
Set a specific key in the input register to a specific value. |
void |
setProcessName(java.lang.String name)
Set the process name. |
void |
setSourceCode(java.lang.String code)
Set the process source code; subclasses may throw the exception. |
boolean |
suppliesOutput(RADataType obj,
java.lang.String name)
Returns true if the process can supply the specified output object and name. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String sourceCode
protected RAStatement statement
protected RARegister register
protected RASetRegister inregister
protected RAFetchRegister outregister
protected boolean hasRun
| Constructor Detail |
|---|
public RAProcess(RARegister register,
RAStatement statement,
RASetRegister inregister,
RAFetchRegister outregister)
| Method Detail |
|---|
public void reset()
throws RAException
RAExceptionpublic void setProcessName(java.lang.String name)
public java.lang.String getProcessName()
public void setSourceCode(java.lang.String code)
throws RAException
RAExceptionpublic java.lang.String getSourceCode()
public void execute()
throws RAException
RAException
public void run()
throws RAException
RAExceptionpublic void dumpRegisters()
public void set(java.lang.String key,
RADataType value)
throws RAException
RAException
public RADataType get(java.lang.String key)
throws RAException
RAExceptionpublic java.util.Vector getInputNames()
public java.util.Vector getInputObjects()
public java.util.Vector getOutputNames()
public java.util.Vector getOutputObjects()
public boolean acceptsInput(RADataType obj,
java.lang.String name)
public boolean suppliesOutput(RADataType obj,
java.lang.String name)
public RADataType getDataType(java.lang.String name)
throws RAException
RAExceptionpublic boolean isSpecial()
public java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||